package cn.byapps.hw.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

@Entity
@Data
@AllArgsConstructor
@NoArgsConstructor
@DiscriminatorValue("H")
public class MaterialFile extends StudentFile {
    @Column(name = "score", length = 10)
    private Integer score;// 成绩
    @Column(name = "comment",length = 255)
    private String comment = "";// 评语
    @Column(name = "sId",length = 20)
    private String sId;// 学生学号Id

    @ManyToOne
    @JoinColumn(name = "material_id")
    private Material material;
}
